package com.lh0811.forge.pserv.uacs.api.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 开发平台-租户组织机构表
 *
 * @author
 * @email
 * @date 2024-05-24 15:39:44
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class UacsTenantDepartmentCreateParam implements Serializable {

    @Schema(description = "父节点id")
    private Long pid;

    @NotNull(message = "租户id不能为空")
    @Schema(description = "租户id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long tenantId;

    @NotBlank(message = "组织机构名称不能为空")
    @Schema(description = "组织机构名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String departmentName;

    @Schema(description = "备注")
    private String notes;
}
